import { commonUrl } from '@/config/index'
import axios from 'axios'


export function upLoadImg(value,name) {
    return axios.post(commonUrl.uploadImg,{
        type: 1,
        value,
        name,
    }).then((res) => {
        console.log(res) 
        if(res.data.code === 1) {
            return res.data.data
        }
    })
}

export function removeImg(name,value) {
    return axios.post(commonUrl.removeImg,{
        value,
        name,
    }).then((res) => {
        console.log(res) 
    })
}


